<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:replace="main_layout::html_header(_, _)">
</head>
 
<body class="hold-transition skin-blue fixed">
<div class="wrapper">

<header class="main-header" th:replace="main_layout::header">
</header>

<aside class="main-sidebar">
	<section class="sidebar" th:replace="main_layout::menu">
	</section>
</aside>

<div class="content-wrapper">
<section class="content-header">
	<h1><a th:href="@{/}">首页 </a><small>合同初审</small></h1>
</section>
	
<section class="content">
	<div class="box box-info" style="margin-top: 10px">
	<div class="box-body">
	<form class="form-inline" th:action="@{/history/data/export}" id="search_form" target="_blank">
		<div class="form-group">
			<label for="name"> 范围：</label>
			<input type="text" class="form-control" name="startTime" id="startTime" th:value="${startTime}" style="min-width: 200px" />
			~
			<input type="text" class="form-control" name="endTime" id="endTime" th:value="${endTime}" style="min-width: 200px" />
		</div>

		<div class="form-group">  
			<button type="button" class="btn btn-primary" onclick="table.ajax.reload();">查询</button>
			<button type="button" class="btn btn-primary" onclick="open_doc();">查看文档</button>
		</div>
	</form> 
	</div>
	</div>
</section>
</div>
  
<footer class="main-footer" th:replace="main_layout::footer">
</footer>


<aside class="control-sidebar control-sidebar-light">
    
</aside>

<div class="control-sidebar-bg" ></div>

</div>


<script th:src="@{/pageoffice.js}" id="po_js_main"></script>
<script>
$(function(){
	var h = $(window).height() - 260;
	var height = (h < 400 ? 400 : h) + 'px';
	$("#po_div").css('height', height);
});

function fullScreen() {
    document.getElementById("page_office").FullScreen = !document.getElementById("page_office").FullScreen;
}
function printSet() {
    document.getElementById("page_office").ShowDialog(5); 
}
function printFile() {
     document.getElementById("page_office").ShowDialog(4); 
}

//隐藏/显示 Office工具栏
function office_toolbar() {
    document.getElementById("page_office").OfficeToolbars = !document.getElementById("page_office").OfficeToolbars;
}
//隐藏/显示 标题栏
function title_bar() {
    document.getElementById("page_office").Titlebar = !document.getElementById("page_office").Titlebar;
}

function check() {
	$('#exampleModal').modal('show');
}

function open_doc() {
	POBrowser.openWindowModeless('/contract/openDoc' , 'width=1200px;height=800px;');
}
</script>
</body>
</html>
